.file-transfer-manager {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 400px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1000;
}

.file-transfer-manager.minimized {
  height: 40px;
  overflow: hidden;
}

.transfer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #f5f5f5;
  border-radius: 8px 8px 0 0;
}

.transfer-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.header-controls {
  display: flex;
  gap: 8px;
}

.header-controls button {
  padding: 4px 8px;
  border: none;
  background: #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s;
}

.header-controls button:hover {
  background: #d0d0d0;
}

.transfer-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
}

.transfer-item {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.transfer-item:last-child {
  margin-bottom: 0;
}

.task-info {
  margin-bottom: 8px;
}

.file-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-details {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

.progress-bar {
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  background: #4CAF50;
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.task-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.control-button {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.control-button:not(.remove) {
  background: #2196F3;
  color: white;
}

.control-button:not(.remove):hover {
  background: #1976D2;
}

.control-button.remove {
  background: #ff5252;
  color: white;
}

.control-button.remove:hover {
  background: #ff1744;
}

/* 状态样式 */
.transfer-item.pending {
  border-left: 4px solid #FFC107;
}

.transfer-item.transferring {
  border-left: 4px solid #2196F3;
}

.transfer-item.paused {
  border-left: 4px solid #9E9E9E;
}

.transfer-item.completed {
  border-left: 4px solid #4CAF50;
}

.transfer-item.error {
  border-left: 4px solid #f44336;
}

/* 动画效果 */
@keyframes progress-pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

.transfer-item.transferring .progress-fill {
  animation: progress-pulse 1.5s ease infinite;
} 